<extend name="Public:base" />
<!-- 网站标题 -->
<block name="title">语音识别</block>
<block name="appendheader"> 
	<!-- Validform_v5.3.2验证框架 -->
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Validform/css/Validform_v5.3.2.css"/>
	<script type="text/javascript" src="__PUBLIC__/Validform/js/Validform_v5.3.2_min.js"></script>
	<!--编辑器js引入-->
	<script type="text/javascript">
		var UEDITOR_HOME_URL = '__PUBLIC__/ueditor/',ueditor_loader={};
		var MEDIA_OBJID = '{$Think.request.webid}{$Think.config.UEDITOR_TOPIC_PATH}{$Think.request.rid}/Topic/MediaLib/';
	</script>
	<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
	<!-- 删除确认插件 --> 
	<script type="text/javascript" src="__PUBLIC__/artDialog/jquery.artDialog.js?skin=default"></script> 
	<script type="text/javascript" src="__PUBLIC__/artDialog/iframeTools.js"></script> 
	<script type="text/javascript" src="__PUBLIC__/common/js/list.js"></script> 
	<script type="text/javascript">
		$(function() {
			$("#WebMenu-3000").addClass('active');	//选中父菜单
			$("#WebMenu-3030").addClass('active');	//选中当前菜单
		});
	</script> 
	<script type="text/javascript">
		$(function() {
			var editor;
			var myform=$("#myform").Validform({
				tiptype:3,
				label:".label",
				showAllError:true,
				postonce:true,//开启二次提交防御
				ajaxPost:false,
				beforeSubmit:function(curform) {
					//在验证成功后，表单提交前执行的函数，curform参数是当前表单对象。
					lockScreen();
				},
				callback:function(data){
					$.Hidemsg();
				}
			});
			myform.addRule([{
				ele:"#voice",
				datatype:"*",
		        nullmsg:"请上传识别语音文件"
			}]);
		});
	</script>
</block>
<!-- 当前位置 -->
<block name="breadcrumb">
	<div class="page-header pull-left">
		<div class="page-title">语音识别</div>
	</div>
	<ol class="breadcrumb page-breadcrumb pull-left">
		<li><i class="fa fa-home"></i>&nbsp;<a href="__APP__?g=Admin">首页</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
		<li><a href="#">数据管理</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
		<li class="active">语音识别</li>
	</ol>
</block>
<!-- 网页主内容区 -->
<block name="main_content">
	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-blue">
				<div class="panel-heading">语音识别</div>
				<div class="form-body"> 
					<form id="myform" name="myform" action="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=insert" method="post" class="form-horizontal form-seperated" enctype="multipart/form-data">
						<div class="form-body"> 
						<div class="form-group">
							<label for="logo" class="col-md-2 control-label">请选择语音文件：</label>
							<div class="col-md-7">
								<input type="file" id="voice" name="voice" class="form-control" accept=".mp3,.wav,.flac,.m4a,.opus" />
								<p class="help-block">允许格式：{$Think.config.Voice_LOGO_ALLOWEXTS}</p>
								<p class="help-block">文件大小：{$Think.config.Voice_LOGO_MAX_SIZE}</p>
							</div>
						</div>
						<notempty name="rs">
						<div class="form-group">
							<label for="logo" class="col-md-2 control-label">语音识别结果：</label>
							<div class="col-md-7">
								<textarea id="quota_remark" name="quota_remark" class="form-control" style="height:100px;">{$rs}</textarea>
							</div>
							<div class="col-md-2">
								<a href="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=yun_wz&id={$id}" target = "_blank" class="btn btn-success"><i class="fa fa-plus"></i>&nbsp;关键词提取</a>&nbsp;
							</div>
						</div>
						</notempty>
						<div class="form-actions text-left pal">
							<div class="col-md-offset-2 col-md-7">
								<button type="submit" class="btn btn-primary">提交</button>&nbsp;&nbsp;
								<button type="button" class="btn btn-green" onclick="history.go(-1);">取消</button>
							</div>
						</div>
						</div>
					</form>
			 	</div>
			</div>
		</div>
	</div>
</block>
